import axios from '../../network/axios'

// 查询
export const getManufacturerList = (params) => {
  return axios({
    method: 'GET',
    url: '/manufacturer-input-out-pay/list',
    params
  })
}

// // 客户进退利润明细 （时间段必填）
// export const getCustomerProfit = (params) => {
//   return axios({
//     method: 'GET',
//     url: '/manufacturer-input-out-pay/getCustomerProfit',
//     params
//   })
// }

// 刷新厂商进退付款对账数据
export const getManufacturerRefreshList = (params) => {
  return axios({
    method: 'GET',
    url: '/manufacturer-input-out-pay/refresh',
    params
  })
}

// 新建
export const addManufacturer = (params) => {
  return axios({
    method: 'post',
    url: '/manufacturer-input-out-pay/insert',
    data: params
  })
}

// 修改付款金额
export const updateMoney = (params) => {
  return axios({
    method: 'put',
    url: '/manufacturer-input-out-pay/updateMoney',
    params
  })
}

// 删除付款记录
export const deleteRecord = (params) => {
  return axios({
    method: 'delete',
    url: '/manufacturer-input-out-pay/delete',
    params
  })
}
